#define  _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>

void init(int arr[], int size) {
    for (int i = 0; i < size; i++) {
        arr[i] = 0;
    }
}

void print(int arr[], int size) {
    for (int i = 0; i < size; i++) {
        printf("%d ", arr[i]);
    }
    printf("\n");
}

void reverse(int arr[], int size) {
    int temp;
    for (int i = 0; i < size / 2; i++) {
        temp = arr[i];
        arr[i] = arr[size - 1 - i];
        arr[size - 1 - i] = temp;
    }
}

int main() {
    int arr[] = { 1, 2, 3, 4, 5, 6 };
    int size = sizeof(arr) / sizeof(arr[0]);
    init(arr, size);
    printf("After initialization: ");
    print(arr, size);
    int brr[] = { 1,2,3,4,5,6, };
    reverse(brr, size);
    printf("\nAfter reversing: ");
    print(brr, size);
    return 0;
}